package com.ctshk.rpc.system.req;

import com.ctshk.common.model.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Lenovo
 */
@Data
@ApiModel(value="AreaAddReq对象", description="新增国家区域对象")
public class AreaAddReq implements Serializable {


    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态（0：启用 1：禁用）")
    private Integer status;

    @NotBlank(message = "编码不能为空")
    @ApiModelProperty(value = "编码")
    private String code;

    @NotNull(message = "层级不能为空")
    @ApiModelProperty(value = "层级")
    private Integer level;

    @NotBlank(message = "拼音不能为空")
    @ApiModelProperty(value = "pinyin")
    private String pinyin;

}
